package event;

public class EventDispatcherThread implements Runnable
{
	private IEvent event;
	private IEventListener eventListener;

	public EventDispatcherThread(IEventListener eventListener, IEvent event)
	{
		this.eventListener=eventListener;
		this.event=event;
	}

	public void run() 
	{
		eventListener.handleEvent(event);
	}
}